<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>流程语句</title>
</head>

<body>
  <script>
    // 分支语句,某种条件成立,才执行某段代码
    // condition 肯第神 ,条件情况,布尔值 true|false
    // if (condition) { 代码群 }  condition 是true
    console.log("放学回家");
    console.log("考的怎么样呢");
    let num = prompt("告诉我分数");

    if (num == "100") {
      console.log("怀疑作弊,抽一顿");
    }
    console.log("继续努力好好学习");

  </script>
</body>

</html>